// 导入所有数据模型类
import { BaseModel } from './BaseModel';
import { User, type IUser } from './User';
import { Script, type IScript } from './Script';
import { Connection, type IConnection } from './Connection';
import { Version, type IVersion, type VersionDiff } from './Version';
import { Execution, type IExecution, type ExecutionStats } from './Execution';
import { Folder, type IFolder } from './Folder';

// 导出类型
export { BaseModel };
export type { IUser, IScript, IConnection, IVersion, VersionDiff, IExecution, ExecutionStats, IFolder };

// 创建模型实例
export const userModel = new User();
export const scriptModel = new Script();
export const connectionModel = new Connection();
export const versionModel = new Version();
export const executionModel = new Execution();
export const folderModel = new Folder();

// 导出类（如果需要）
export { User, Script, Connection, Version, Execution, Folder };